Methods and apparatus for implementing application specific processors

ABSTRACT

Methods and apparatus are provided for efficiently implementing an application specific processor. An application specific processor includes a data path and a control path. A control path is implemented using processor components to increase resource efficiency. Both the data path and the control path can be implemented using function units that are selected, parameterized, and interconnected. A tool uses the selected function units and interconnection information to provide data for implementing the application specific processor. Missing function units or interconnections can be identified and corrected.

CROSS-REFERENCE TO RELATED APPLICATIONS

The present application is a continuation of and claims priority to co-pending U.S. patent application Ser. No. 11/040,152, filed Jan. 20, 2005, which is incorporated herein by reference in its entirety.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to processors. In one example, the present invention relates to improving mechanisms and techniques for implementing application specific processors.

2. Description of the Prior Art

A number of benefits have spurred efforts towards developing more easily customizable devices. Designers often have difficulty implementing devices with resource, speed, and cost characteristics that match needs and requirements. On one end of the spectrum, a designer can implement an application specific integrated circuit (ASIC) that has substantial processing efficiency and small marginal costs on a per unit basis. However, drawbacks include substantial design costs as well as significant risks that a redesign may be needed. A designer can also select an application specific standard product (ASSP) that provides the processing power of an ASIC but is available as an off-the-shelf component. However ASSPs are typically only available for relatively generic purposes. Some ASICs and ASSPs include some programmability, however the programmability may not be sufficient for customizing the device for a particular use.

Programmable chips can also be selected. Programmable chips can be relatively easily customized for particular uses, however the marginal costs on a per unit basis may be more significant and some processing power may be sacrificed. Furthermore, implementing programmable devices is often not straightforward. In many instances, a non-optimal design is often selected because of ease of implementation. The non-optimal design may require more logic resources than necessary and therefore require a more expensive programmable chip. Tools used to simplify implementation, such as tools that convert high level language code to hardware description language files, also often do not take advantage of the specific hardware architectures.

Designers can also select devices with both hard coded logic and programmable logic, but the hard coded logic may be inefficiently used.

Mechanisms for implementing devices in a cost effective and resource efficient manner are limited. Consequently, there are continued efforts to provide devices that overcome at least some of the drawbacks noted above. It is therefore desirable to provide improved methods and apparatus for implementing devices.

SUMMARY OF THE INVENTION

Methods and apparatus are provided for efficiently implementing an application specific processor. An application specific processor includes a data path and a control path. A control path is implemented using processor components to increase resource efficiency. Both the data path and the control path can be implemented using function units that are selected, parameterized, and interconnected. A tool uses the selected function units and interconnection information to provide data for implementing the application specific processor. Missing function units or interconnections can be identified and corrected.

In one embodiment, a technique for implementing a custom processor is provided. Multiple function units for implementing an application specific processor are received. The multiple function units can be selected and parameterized by a user. Some examples of function units include registers, memory, counters, multiply accumulate blocks, input channels, output channels, and shifters. Interconnection information for connecting the function units is also received. A hardware description for instantiating the function units and connecting the function units is generated.

In another embodiment, a system for implementing an application specific processor is provided. The system includes an interface and a processor. The interface receives function units for implementing an application specific processor. The function units can be selected and parameterized by a user. The interface also receives interconnection information for connecting the multiple function units. A processor is operable to generate a hardware description for instantiating the function units and connecting the function units.

These and other features and advantages of the present invention will be presented in more detail in the following specification of the invention and the accompanying figures, which illustrate by way of example the principles of the invention.

BRIEF DESCRIPTION OF THE DRAWINGS

The invention may best be understood by reference to the following description taken in conjunction with the accompanying drawings, which illustrate specific embodiments of the present invention.

FIG. 1A is a diagrammatic representation showing a finite state machine and a datapath.

FIG. 1B is a diagrammatic representation showing a processor implemented controller.

FIG. 2 is a diagrammatic representation showing control circuitry reuse for multiple functions.

FIG. 3 is a diagrammatic representation showing a function unit.

FIG. 4 is a diagrammatic representation depicting a custom processor.

FIG. 5 is a diagrammatic representation showing a toolflow for implementation of a custom processor on a programmable device.

FIG. 6 is a process flow diagram showing one technique for implementing a custom processor.

FIG. 7 is a diagrammatic representation showing a technique for implementing the programmable chip.

FIG. 8 is a diagrammatic representation of a computer system that can be used to implement the techniques of the present invention.

DETAILED DESCRIPTION OF SPECIFIC EMBODIMENTS

Reference will now be made in detail to some specific embodiments of the invention including the best modes contemplated by the inventors for carrying out the invention. Examples of these specific embodiments are illustrated in the accompanying drawings. While the invention is described in conjunction with these specific embodiments, it will be understood that it is not intended to limit the invention to the described embodiments. On the contrary, it is intended to cover alternatives, modifications, and equivalents as may be included within the spirit and scope of the invention as defined by the appended claims.

For example, the techniques of the present invention will be described in the context of particular processors and devices. However, it should be noted that the techniques of the present invention can be applied to a variety of types of processors and devices and associated software. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. The present invention may be practiced without some or all of these specific details. In other instances, well known process operations have not been described in detail in order not to unnecessarily obscure the present invention. Techniques and mechanisms are also often associated with certain processes and components that are optional, unless noted otherwise. Optional processes and components may sometimes be removed or introduced into particular process flows or devices without affecting the operation of the present invention.

Furthermore, techniques and mechanisms of the present invention will sometimes be described in singular form for clarity. However, it should be noted that some embodiments can include multiple iterations of a technique or multiple instantiations of a mechanism unless noted otherwise. For example, a processor is used in a variety of contexts. However, it will be appreciated that multiple processors can also be used while remaining within the scope of the present invention.

Implementing a device using a hardware description language such as VHDL or Verilog is a time-consuming and arduous process. Although hardware description languages allow a designer to describe an optimal implementation for a device, that implementation may not be produced even by a skilled designer. Often, a suboptimal implementation is chosen because it is easier to describe or correctly implement. Consequently, a variety of tools and programs have been developed to improve the hardware design process.

Some tools allow programs written in high-level languages such as C and C++ to be compiled into HDL and implemented on a device. Any programming language allowing functional description of processes that does not require knowledge of the underlying hardware is referred to herein as a high-level language. However, these tools are often inefficient because they cannot define specialized functional blocks for particular devices or topologies. That is, the hardware description generated is often highly generic and may not be well suited for a particular device. In many instances, these tools can only use simple arithmetic logic units (ALUs), load/store blocks, and register files found in conventional devices. Furthermore, the process of automatically translating a generic description into a hardware configuration is often difficult.

Some other tools implement devices using components that are infrequently used. For example, the device may be used to implement an algorithm such as a Fast Fourier Transform (FFT). A Fast Fourier Transform can be conceptually divided into data path functionality and control path functionality. In many instances, the control path functionality is infrequently used as state changes only occur periodically. Nonetheless, control path functionality and data path functionality are often implemented using dedicated circuitry. Control functionality may be implemented using counters and indices that compute values such as mean and max data values. The control path and the data path are often closely coupled and sometimes difficult to separate. The control path is implemented to maximize efficiency and to allow the generation of state information as soon as possible. Resources are devoted to implementing control path functionality even though the bulk of the processing occurs in the data path. Tools often implement hardware devices inefficiently.

Consequently, the techniques and mechanisms of the present invention provide tools to allow a designer to implement an efficient custom processor. Various function units such as registers, memory, counters, multiply accumulate blocks, input channels, output channels, shifters, etc. can be selected and parameterized from a library. The designer can then identify how the function units are interconnected. Components for implementing a custom processor are referred to herein as function units. For example, using the techniques of the present invention, the output of a multiply accumulate block can be coupled to the input of a barrel shifter. The data path can be coded as a set of function units. According to various embodiments, the control path is coded as a program using a single arithmetic logic unit (ALU) to carry out state computations. The infrequently accessed state information is collected in memory. By using a single ALU and a memory to carry out all state computations, hardware resources can be conserved. Although implementing the control path as a program using an ALU and memory can mean that some state transitions that used to be calculated in a single cycle now take multiple cycles, the techniques of the present invention recognize that this trade-off is beneficial because of the amount of hardware resources conserved.

A tool can be used to automatically identify or generate function units to use as building blocks for a device having a controller implemented as a processor. Information identifying connections between function units can be received from a user and missing or incorrect interconnections can be rerouted or created. The techniques and mechanisms of the present invention allow a high-level description of the device to be implemented in a targeted and resource efficient manner.

FIG. 1A is a diagrammatic representation showing a device implemented with a data path and a state machine. It should be noted that the data path 141 and the state machine 101 are often closely coupled and may be conceptually separated in a variety of manners. In many implementations, a device implemented as a data path 141 and a state machine 101 gives high-performance by optimizing data path components. The state machine provides the current state 111 that is passed through a decoder 113 to control the operation of the data path. The data path includes a number of blocks linked together in an application specific topology. The data path also includes a number of pieces of state information including state 121 and state 131. The state information can include counters, indexes, and computed values. For example, the counter may be incremented for each piece of data that is processed. The state machine 101 is also optimized.

In many implementations, both the state machine 101 and data path 141 can be implemented using native HDL. The HDL implemented state machine 101 is able to execute a very large number of state transitions in a small amount of time. In fact, the state machine 101 is often able to compute state transitions far more frequently than the data path 141 needs for operation. In some examples, well over 90 percent of the activity occurs in the data path while the state machine 101 is often left idle, since a next state transition 115 is calculated infrequently. Functional units used to calculate state transitions include comparators, arithmetic operators, and other selection operators and may also include memory implemented as registers storing pieces of data. Few if any of the components used to compute the next state are reused. In some examples, during 90 percent of the execution time, only a small subset of the state machine or controller circuitry is used.

This creates a great deal of inefficiency as the state machine components 101 are optimized to run as efficiently as the data path 141. The techniques of the present invention recognize that control circuitry as a finite state machine can be implemented in a slightly less efficient manner while allowing the conservation of a large amount of resources.

FIG. 1B is a diagrammatic representation of an implementation according to various embodiments of the present invention. The data path 181 can remain optimized. However, according to various embodiments, a state machine is implemented as a processor 171. In many examples, infrequently changing state information is collected in a memory 155. Collecting state information in memory is particularly efficient on memory rich programmable chips. An arithmetic logic unit 157 is used to carry out state computations. The arithmetic logic unit is a relatively generic device that can be used to carry out the computations that specialized circuitry within a finite state machine typically performs. The arithmetic logic unit can perform comparisons, arithmetic operations, or cause jump or branch operations in a program. The processor 171 also includes a program counter 151 and a program 153.

With almost all the state information in memory, access to memory is typically performed sequentially with only one variable read or update per clock cycle. Access matches an arithmetic logic unit that performs a single computation per clock cycle. Using memory to hold state information means that some state transitions that used to be performed in a single cycle now take multiple cycles. However, given that the device with a processor 171 typically spends 90 percent of its time in a single state and the remaining time is spent in non performance critical tasks such as state transitions, performance is typically not significantly affected. In many implementations, controller logic implemented as a processor 171 uses fewer logic resources than a controller implemented as a finite state machine.

According to various embodiments, a controller implemented as a processor is computationally complete and can compute any function subject to memory constraints.

FIG. 2 is a diagrammatic representation showing implementation of a more complex function. In conventional implementations, multiple functions 203 and 205 implemented on a device would require a finite state machine controller with more registers, more logic for comparators and arithmetic operations, and more multiplexers than a finite state machine controller with a single function 203. Footprint for control logic on a device would grow substantially. The processor as a controller implementation on the other hand only includes changes to the program to describe the new computations. If there is space in the program memory, no changes to hardware may be required.

If extra program memory is needed, memory can be increased by a factor of two or four with only minimal impact on the size of the controller. Since controller logic is typically infrequently used, negligible impact on system performance results. In one example, when two functions are applied in series, a single piece of hardware can be implemented to perform both functions. Implementing the functions using a processor as a controller makes composing the two functions on a single device relatively straightforward.

By using a program as a controller, changes to the algorithm can be implemented by simply reprogramming the controller without affecting the data path. Any programmable control path coupled to a data path that includes a program for controlling data path operation is referred to herein as a controller implemented as a processor. A controller implemented as a processor typically includes memory, an arithmetic logic unit, a program counter, and a program. It should be noted that a controller implemented as a processor may often be closely coupled to a data path.

According to various embodiments, the data path and the control path associated with a device can be implemented using a set of parameterizable function units. Function units may be available in a library and preoptimized to allow interconnection by a user. Function units can include processing function units, storage function units, infrastructure function units, and input output function units. In some examples, processing function units include arithmetic units, shifters, modulo counters, multiply accumulate blocks, complex multipliers, single integer multipliers, value combiners, and part selectors. Storage function units include registers and memory. Infrastructure function units include constant values, immediate fields, program counters, exit blocks, and uncommitted function units that can have ports and function specified by a user. In one example, uncommitted function units can have ports and functions specified by user supplied an Extensible Markup Language (XML) file. Input output function units can include general purpose output, general purpose input, bus masters, input channels, and output channels. Other types of function units including interface function units are possible as well.

FIG. 3 is a diagrammatic representation showing a function unit. According to various embodiments, the processor and data path are implemented using transport triggered function units. The transport triggered architecture uses a minimal amount of hardware to implement a processor like structure. According to various embodiments, most of the complexity associated with a processor architecture is moved into the program. The transport triggered architecture is hardware minimal so that is possible to use the parameterizable and optimized function units to construct the control path as well as the data path. According to various embodiments, the transport triggered function unit includes inputs 311 and 313 and output 315. A multiplexer 331 is used to select an input using select signal 301.

In many examples, the function units operate on the transport triggered basis. Data inputs and/or outputs are registered. Associated with some of the ports are enables or triggers which indicate that a new input value is being fed to the unit or read from it. The act of transporting data to or from the function unit triggers operation. The triggers 303 are typically derived from the program, although triggers can also be generated by other blocks. Some function units have an additional control port 305 that can provide additional control information. The value can be applied to the port at the same time the function unit is triggered. For example, an add/subtract unit may be triggered by moving data to its input 311. Applying a control signal at the same time will cause it to subtract rather than add.

Using a triggered architecture simplifies creation of a programmable pipeline. An alternative design uses a clock triggered architecture which performs an operation on each clock cycle. However, clocking makes implementing operations harder as input and output scheduling would become more complicated.

FIG. 4 is a diagrammatic representation of the structure of a device having a program, a program counter, a controller, and the data path. Although the components of a device can be conceptually separated, the boundary separating the data path 401, controller 403, program counter 405, and program 407 are rather flexible. The program 407 provides multiplexer select and trigger controls to the program counter 405, controller 403, and data path 401.

FIG. 5 is a diagrammatic representation of one example of a tool flow that is associated with implementation of a device. According to various embodiments, the device includes a data path and a processor implemented control path. Any device that includes a data path and a processor implemented control path is referred to herein as an application specific processor. According to various embodiments, the application specific processor includes a data path and a control path having an ALU, program counter, and a program. The tool used to implement an application specific processor is referred to as an application specific processor builder.

According to various embodiments, the application specific processor builder 507 receives function units from functional unit library 505 and high-level code 501 converted to parallel assembly 503. Function units and associated interconnections between function units can be specified within program files or databases or other user interfaces. For example, to declare a function unit, the following format can be used:

-   -   fu NAME=TYPE (PARAMETERS)     -   fu program_counter=basicpc (PC_WIDTH=>8, DELAY_SLOTS=>2)     -   fu gpio0=gpio (WIDTH=>16)

Values such as immediates and literals can be supplied as follows:

-   -   field NAME=TYPE (PARAMETERS)     -   field immPC=integer (WIDTH=>8)

Interconnections can be specified as follows:

-   -   mux NAME=TYPE     -   transport=(destinationA.port1,         destinationB.port2}<={sourceX.port8, sourceY.port9,         sourceZ.port0}

Some additional information can be given to the application specific processor builder about how to generate the processor as follows:

-   -   machine NAME=TYPE     -   machine=bound     -   machine fft_processor=unbound_transport_n1mux

The program can be specified as move operations. For example, parallel move operations can be performed in parallel:

-   -   mov unitA.port1, unitX.port     -   ∥mov unitB.port, unity.port4     -   ∥mov unitC.port5, unity.port4

A jump or branch instruction can be implemented by moving a new value to the program counter as follows:

-   -   mov programCounter.nextInstruction, immediate. START_OF_LOOP

Immediate values can be specified using a set or control command as follows:

-   -   set immediate_(—)5.value, 0xFFFE     -   ∥mov output0.d, immediate_(—)5.value     -   ∥mov output1.d, immediate_(—)5.value     -   ctrl fp_alu.rounding_mode, 4

After receiving function unit information and program information, the application specific processor builder 507 can provide a variety of outputs. According to various embodiments, the application specific processor builder 507 generates a processor using a hardware description language file 511. The description instantiates function units and interconnects the function units. The builder extracts hardware description language implementations of each function unit type used in the processor from a function unit library 505. Module generators may also be run at this stage to generate implementations. A program is also encoded to provide program file 515. According to various embodiments, the builder constructs an instruction word for the processor that includes any immediate fields used, multiplexer select lines, function unit triggers, and other control signals. The program is analyzed and encoded using the instruction word. The program can also be compressed to reduce the size of memory required to store the program.

However, by compressing the program, a decoder would have to be provided. Having a decoder may restrict the ways in which a processor can be used. Using the hardware descriptor language file 511 and the program file 515, a device 513 can be implemented. The builder 507 can also generate a test bench 519 to allow for automated testing of the device. A visualization 521 can be generated to provide a graphical representation of function units in the connections between them. In some examples, a high-level language model 523 is generated to allow modeling of the program. A VHDL trace generation file 525 is provided to allow the creation of a trace file when the program is executed by the processor running in the hardware description language simulator. A component definition 517 can also be used to describe the device as a component for use on a system on a programmable chip. This allows the application specific processor to be implemented as a stand-alone device or as a component within a larger device.

FIG. 6 is a flow process diagram showing a technique for implementing a device. At 601, function unit selection information is received. Function unit selection information is typically provided by a user with access to a library of function units. The function units can be widely used, parameterizable components that are preoptimized by designers. At 603, interconnection information is received. Interconnection information identifies how the various function units are interconnected. At 605, it is determined if there is a missing function unit.

For example, based on the interconnection information, it may be inferred that a function unit required has not yet been declared. If the function unit is missing at 605, an error can be reported at 611. In some examples, no error reporting is needed. According to various embodiments, a new function unit is created at 613. A substitute for the missing function unit can then be selected at 615. In one example, the new function unit is created and selected automatically after a user is prompted for function unit information. It should be noted that in some examples, a new function unit is not needed and a substitute can be selected from a function unit library. In one example, a substitute may be selected from a slightly modified function unit in a function unit library. At 617, is determined if interconnection information is missing. For example, if inputs or outputs are left unconnected, missing interconnections can be inferred. An error can be reported at 621 and/or a new path or added route can be created at 623. At 625, the hardware description language file is generated. In some instances, no missing information is detected.

FIG. 7 is a diagrammatic representation showing implementation of an electronic device having a customizable processor core. An input stage 701 receives selection information for various function units and interconnections typically from a user to be implemented on an electronic device. A generator program 705 such as an application specific processor builder creates a logic description and provides the logic description along with other customized logic to any of a variety of synthesis tools, place and route programs, and logic configuration tools to allow a logic description to be implemented on an electronic device.

In one example, an input stage 701 often allows selection and parameterization of function units to be used on an electronic device. In some examples, function units and interconnection information are used to implement an application specific processor on a system on a programmable chip. The system on a programmable chip also includes other components provided to an input stage. Other components include intellectual property functions, megafunctions, and intellectual property cores. The input stage 701 may be a graphical user interface using wizards for allowing efficient or convenient entry of information. The input stage may also be a text interface or a program reading a data file such as a spreadsheet, database table, or schematic to acquire selection information. The input stage 701 produces an output containing information about the various modules selected.

In typical implementations, the generator program 705 can identify the selections and generate a logic description with information for implementing the application specific processor. According to various embodiments, the generator program 705 also provides information to a synthesis tool 707 to allow HDL files to be automatically synthesized. In some examples, a logic description is provided directly by a designer. Some of the available synthesis tools are Leonardo Spectrum, available from Mentor Graphics Corporation of Wilsonville, Oreg. and Synplify available from Synplicity Corporation of Sunnyvale, Calif. The HDL files may contain technology specific code readable only by a synthesis tool. The HDL files at this point may also be passed to a simulation tool.

As will be appreciated by one of skill in the art, the input stage 701, generator program 705, and synthesis tool 707 can be separate programs. The interface between the separate programs can be a database file, a log, or simply messages transmitted between the programs. For example, instead of writing a file to storage, the input stage 701 can send messages directly to the generator program 705 to allow the generator program to create a logic description. Similarly, the generator program can provide information directly to the synthesis tool instead of writing HDL files. Similarly, input stage 701, generator program 705, and synthesis tool 707 can be integrated into a single program.

A user may select various modules and an integrated program can then take the user selections and output a logic description in the form of a synthesized netlist without intermediate files. Any mechanism for depicting the logic to be implemented on an electronic device is referred to herein as a logic description. According to various embodiments, a logic description is an HDL file such as a VHDL, Abel, AHDL, or Verilog file. A logic description may be in various stages of processing between the user selection of components and parameters to the final configuration of the device. According to other embodiments, a logic description is a synthesized netlist such as an Electronic Design Interchange Format Input File (EDF file). An EDF file is one example of a synthesized netlist file that can be output by the synthesis tool 707.

A synthesis tool 707 can take HDL files and output EDF files. Tools for synthesis allow the implementation of the logic design on an electronic device. Some of the available synthesis tools are Leonardo Spectrum, available from Mentor Graphics Corporation of Wilsonville, Oreg. and Synplify available from Synplicity Corporation of Sunnyvale, Calif. Various synthesized netlist formats will be appreciated by one of skill in the art.

A verification stage 713 typically follows the synthesis stage 707. The verification stage checks the accuracy of the design to ensure that an intermediate or final design realizes the expected requirements. A verification stage typically includes simulation tools and timing analysis tools. Tools for simulation allow the application of inputs and the observation of outputs without having to implement a physical device. Simulation tools provide designers with cost effective and efficient mechanisms for both functional and timing verification of a design. Functional verification involves the circuit's logical operation independent of timing considerations. Parameters such as gate delays are disregarded.

Timing verification involves the analysis of the design's operation with timing delays. Setup, hold, and other timing requirements for sequential devices such as flip-flops are confirmed. Some available simulation tools include Synopsys VCS, VSS, and Scirocco, available from Synopsys Corporation of Sunnyvale, Calif. and Cadence NC-Verilog and NC-VHDL available from Cadence Design Systems of San Jose, Calif. After the verification stage 713, the synthesized netlist file can be provided to physical design tools 719 including place and route and configuration tools. A place and route tool typically locates logic cells on specific logic elements of a target hardware device and connects wires between the inputs and outputs of the various logic elements in accordance with logic required to implement an electronic design. The device can also be physically tested at 723.

For programmable logic devices, a programmable logic configuration stage can take the output of the place and route tool to program the logic device with the user selected and parameterized modules. According to various embodiments, the place and route tool and the logic configuration stage are provided in the Quartus Development Tool, available from Altera Corporation of San Jose, Calif. As will be appreciated by one of skill in the art, a variety of synthesis, place and route, and programmable logic configuration tools can be tested using various techniques of the present invention.

As noted above, different stages and programs can be integrated in a variety of manners. According to one embodiment, the input stage 701, the generator program 705, the synthesis tool 707, the verification tools 713, and physical design tools 719 are integrated into a single program. The various stages are automatically run and transparent to a user. The program can receive the user selected modules, generate a logic description depicting logic for implementing the various selected modules, and implement the electronic device. As will be appreciated by one of skill in the art, HDL files and EDF files are mere examples of a logic description. Other file formats as well as internal program representations are other examples of a logic description.

FIG. 8 illustrates a typical computer system that can be used to implement a programmable chip. The computer system 800 includes any number of processors 802 (also referred to as central processing units, or CPUs) that are coupled to devices including memory 806 (typically a random access memory, or “RAM”), memory 804 (typically a read only memory, or “ROM”). The processors 802 can be configured to generate a test sequences for any designated processor. As is well known in the art, memory 804 acts to transfer data and instructions uni-directionally to the CPU and memory 806 is used typically to transfer data and instructions in a bi-directional manner.

Both of these memory devices may include any suitable type of the computer-readable media described above. A mass storage device 808 is also coupled bi-directionally to CPU 802 and provides additional data storage capacity and may include any of the computer-readable media described above. The mass storage device 808 may be used to store programs, data and the like and is typically a secondary storage medium such as a hard disk that is slower than memory. The mass storage device 808 can be used to hold a library or database of prepackaged logic or intellectual property functions, as well as information on generating particular configurations. It will be appreciated that the information retained within the mass storage device 808, may, in appropriate cases, be incorporated in standard fashion as part of memory 806 as virtual memory. A specific mass storage device such as a CD-ROM 814 may also pass data uni-directionally to the CPU.

CPU 802 is also coupled to an interface 810 that includes one or more input/output devices such as such as video monitors, track balls, mice, keyboards, microphones, touch-sensitive displays, transducer card readers, magnetic or paper tape readers, tablets, styluses, voice or handwriting recognizers, or other well-known input devices such as, of course, other computers. Finally, CPU 802 optionally may be coupled to a computer or telecommunications network using a network connection as shown generally at 812. With such a network connection, it is contemplated that the CPU might receive information from the network, or might output information to the network in the course of performing the above-described method steps. It should be noted that the system 800 may also be associated with devices for transferring completed designs onto a programmable chip. The above-described devices and materials will be familiar to those of skill in the computer hardware and software arts.

The hardware elements described above may be configured (usually temporarily) to act as multiple software modules for performing the operations of this invention. For example, instructions for running a generator program, input stage (e.g., a wizard), and/or compiler may be stored on mass storage device 808 or 814 and executed on CPU 808 in conjunction with primary memory 806.

Although many of the components and processes are described above in the singular for convenience, it will be appreciated by one of skill in the art that multiple components and repeated processes can also be used to practice the techniques of the present invention.

While the invention has been particularly shown and described with reference to specific embodiments thereof, it will be understood by those skilled in the art that changes in the form and details of the disclosed embodiments may be made without departing from the spirit or scope of the invention. For example, the embodiments described above may be implemented using firmware, software, or hardware. Moreover, embodiments of the present invention may be employed with a variety of different file formats, languages, and communication protocols and should not be restricted to the ones mentioned above. Therefore, the scope of the invention should be determined with reference to the appended claims. 

What is claimed is:
 1. A system comprising: a processor configured on a programmable chip, the processor including: a plurality of functional units arranged to perform a plurality of different operations; a processor functional unit operable to calculate a first set of states for all of the functional units based on a first program, wherein the processor functional unit is arranged to output specific one or more states from the first set of states to specific one or more functional units from the functional units to thereby control specific one or more operations from the different operations; a program memory that is programmed with the first program, wherein the program memory is further programmable with a second program to replace the first program for execution to cause the processor functional unit to calculate a second plurality of states differing from the first set of states, wherein the processor functional unit is arranged to output specific one or more states from the second set of states to specific one or more functional units from the functional units to thereby control specific one or more operations from the different operations; and a plurality of registers operable to store the first or second set of states, wherein the plurality of functional units are located outside said processor functional unit.
 2. The system of claim 1, wherein the processor functional unit includes an arithmetic logic unit (ALU) for calculating both the first and second set of states based on the first and second program, respectively.
 3. The system of claim 1, wherein the processor functional unit is operable to change operation associated therewith in response to a trigger signal.
 4. The system of claim 1, wherein the processor functional unit is operable to perform the calculation using multiple clock cycles of a clock signal.
 5. The system of claim 1, wherein the processor functional unit is operable to perform the calculation using a higher number of clock cycles of a clock signal than a number of clock cycles of the clock signal used by a state machine to perform the calculation.
 6. The system of claim 1, wherein the first program specifies a trigger to initiate an operation of the processor functional unit.
 7. The system of claim 1, wherein the processor functional unit is operable to receive data in response to a trigger specified in the first program.
 8. The system of claim 1, wherein the processor functional unit is operable to receive a control signal to change a function of the processor functional unit.
 9. The system of claim 1, wherein the plurality of functional units comprises one or more storage functional units.
 10. The system of claim 1, wherein the second program is generated by changing the first program, wherein the second program is executed to perform a higher number of functions than that performed by the first program.
 11. A method comprising: receiving a first program or a second program for execution by a processor configured on a programmable chip, wherein the programmable chip further comprises a plurality of functional units located outside the processor; calculating by the processor a first set of states for all of the functional units by executing the first program, wherein the processor is arranged to output specific one or more states from the first set of states to specific one or more functional units from the functional units to thereby control specific one or more operations from a plurality of different operations performed by different one or more functional units from the functional units, wherein the processor is further operable to calculate a second plurality of states differing from the first set of states based on the second program and output specific one or more states from the second set of states to specific one or more functional units from the functional units to thereby control specific one or more operations from the different operations; and performing, by the plurality of functional units, an operation based on specific one or more states from the first or second set of states independent from execution of the first or the second program by the processor.
 12. The method of claim 11 further comprising: receiving a control signal based on the first program; and controlling the processor based on the control signal.
 13. The method of claim 11 further comprising: receiving a trigger signal based on the first program; performing a function in response to said receiving the trigger signal; and changing the function in response to receiving a control signal.
 14. The method of claim 11, wherein said calculating is performed using a higher number of clock cycles of a clock signal than a number of clock cycles of the clock signal used by a state machine to perform the calculation.
 15. The method of claim 11, further comprising receiving a trigger signal associated with operation of the processor based on the first program.
 16. The method of claim 15, further comprising: receiving data in response to said receiving the trigger signal.
 17. The method of claim 11, further comprising: performing a function in response to receiving a trigger signal based on the first program; receiving a control signal when the trigger signal is received; and changing the function performed in response to receiving the control signal.
 18. A non-transitory computer-readable medium having instructions stored thereon that, if executed by a computing device, cause the computing device to perform a method comprising: receiving a first program or a second program for execution by a processor configured on a programmable chip, wherein the programmable chip further comprises a plurality of functional units located outside the processor; calculating by the processor a first set of states for all of the functional units by executing the first program, wherein the processor is arranged to output specific one or more states from the first set of states to specific one or more functional units from the functional units to thereby control specific one or more operations from a plurality of different operations performed by different one or more functional units from the functional units, wherein the processor is further operable to calculate a second plurality of states differing from the first set of states based on the second program and output specific one or more states from the second set of states to specific one or more functional units from the functional units to thereby control specific one or more operations from the different operations; and conducting, by the plurality of functional units an operation based on specific one or more states from the first or second set of states independent from execution of the first program or the second program.
 19. The non-transitory computer-readable medium of claim 18, wherein the method further comprises: receiving a control signal based on the first program; and controlling the processor based on the control signal.
 20. The non-transitory computer-readable medium of claim 18, wherein the method further comprises: receiving a trigger signal based on the first program; performing a function in response to said receiving the trigger signal; and changing the function in response to receiving a control signal.
 21. The non-transitory computer-readable medium of claim 18, wherein said calculating is performed using a higher number of clock cycles of a clock signal than a number of clock cycles of the clock signal used by a state machine to perform the calculation. 